/*
 * @Author: cl
 * @Description:
 * @Date: 2023-04-18 11:12:58
 * @LastEditTime: 2023-04-18 15:17:31
 * @FilePath: \jsnode\nestjs\naota\src\student\dto\create-student.dto.ts
 * @LastEditors: cl
 */
import { IsNotEmpty, IsString } from 'class-validator'

export class CreateStudentDto {
  @IsNotEmpty({
    message: '必须输入学生姓名',
  })
  @IsString({
    message: '姓名必须是字符串类型',
  })
  name: string

  @IsNotEmpty({
    message: '必须输入学生学号',
  })
  @IsString({
    message: '学号必须是字符串类型',
  })
  no: string

  sex?: string

  birth?: string

  remark?: string
}
